KsCommandStatus 建構函式
初始化 KsCommandStatus 類別的新實例。
命名空間:IntervalZero.KINGSTAR.Base.Api組合: IntervalZero.KINGSTAR.Base.Api (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
public KsCommandStatus(
ulong handle
int valueLength
int inSyncLatch
bool done
bool inSync
bool inVelocity
bool busy
bool active
bool commandAborted
bool error
KsError errorId
)
Public Sub New(
handle As ULong
valueLength As Integer
inSyncLatch As Integer
done As Boolean
inSync As Boolean
inVelocity As Boolean
busy As Boolean
active As Boolean
commandAborted As Boolean
error As Boolean
errorId As KsError
)
參數
handle
型別:ulong
可用來對一個命令進行特殊識別。新建一個命令時,您可將 KsCommandStatus.Handle 傳給建構函式。
valueLength
型別:int
值緩衝區的長度。新建一個命令時,您可將 KsCommandStatus.ValueLength 傳給建構函式。
inSyncLatch
型別:int
取得或儲存一個命令的特定值。新建一個命令時,您可將 KsCommandStatus.InSyncLatch 傳給建構函式。
done
型別:bool
此方法已執行完成。新建一個命令時,您可將 KsCommandStatus.Done 傳給建構函式。
inSync
型別:bool
true:同步已完成;false:從軸與主軸同步中。新建一個命令時,您可將 KsCommandStatus.InSync 傳給建構函式。
inVelocity
型別:bool
已達到命令速度。新建一個命令時,您可將 KsCommandStatus.InVelocity 傳給建構函式。
busy
型別:bool
方法尚未完成,預期會有新的輸出值。新建一個命令時,您可將 KsCommandStatus.Busy 傳給建構函式。
active
型別:bool
方法正控制著軸。新建一個命令時,您可將 KsCommandStatus.Active 傳給建構函式。
commandAborted
型別:bool
命令被另一個命令中止。新建一個命令時,您可將 KsCommandStatus.CommandAborted 傳給建構函式。
error
型別:bool
方法內發生錯誤的訊號。新建一個命令時,您可將 KsCommandStatus.Error 傳給建構函式。
errorId
型別:KsError
錯誤識別。新建一個命令時,您可將 KsCommandStatus.ErrorId 傳給建構函式。
參見